package com.woniuxy.qiantai.controller;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.qiantai.entity.Product;
import com.woniuxy.qiantai.entity.Shop;
import com.woniuxy.qiantai.entity.Type;
import com.woniuxy.qiantai.service.ProductService;
import com.woniuxy.qiantai.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.io.*;
import java.util.Date;
import java.util.List;
import java.util.UUID;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author firstGroup
 * @since 2023-02-22 09:45:58
 */
@Controller
@RequestMapping("/product")
public class ProductController {
    @Autowired
    ProductService productService;

    @RequestMapping("getProductDetails")
    @ResponseBody
    public Page<Product> getShopDetails(Integer currentPage, Integer pageSize, Integer shopId) { //用于获取从后台查询到的商家产品信息
        Page<Product> shopInfo = productService.selectShopInfoById(currentPage, pageSize, shopId);
        return shopInfo;
    }



}

